// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
// 会自动检索router目录下的文件并引入
import VueAwesomeSwiper from 'vue-awesome-swiper'
// 使用VueAwesomeSwiper插件，在GitHub上下载，安装2.6.7版本npm install vue-awesome-swiper@2.6.7 --save
import store from './store'
// 引入Vuex仓库
import 'styles/reset.css'
// 重置页面的样式表
import 'styles/border.css'
// 解决在多倍屏出现一像素边框
import fastClick from 'fastclick'
// 解决移动端click事件300ms延时问题 npm install fastclick --save  安装fastclick第三方包
import 'styles/iconfont.css'
import 'swiper/dist/css/swiper.css'
// 导入VueAwesomeSwiper的css文件

Vue.config.productionTip = false
fastClick.attach(document.body)
// 绑定fastClick
Vue.use(VueAwesomeSwiper)
// 全局使用VueAwesomeSwiper

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  /* router与component里面其实是es6的省略写法省略相同的内容 实际上是router:router,App:App, */
  components: { App },
  template: '<App/>'
})
